package com.wedding.app.service.impl;

import com.wedding.app.entity.OperationLog;
import com.wedding.app.mapper.OperationLogMapper;
import com.wedding.app.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperationLogServiceImpl implements OperationLogService {

    @Autowired
    private OperationLogMapper operationLogMapper;

    @Override
    public OperationLog selectById(Long id) {
        return operationLogMapper.selectById(id);
    }

    @Override
    public List<OperationLog> selectByUserId(Long userId) {
        return operationLogMapper.selectByUserId(userId);
    }

    @Override
    public List<OperationLog> selectAll() {
        return operationLogMapper.selectAll();
    }

    @Override
    public int insert(OperationLog log) {
        return operationLogMapper.insert(log);
    }

    @Override
    public int deleteById(Long id) {
        return operationLogMapper.deleteById(id);
    }

    @Override
    public int deleteByIds(Long[] ids) {
        return operationLogMapper.deleteByIds(ids);
    }
}